package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.InternalMessageDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 站内信与邮件通知 Mapper 接口
 * </p>
 * @author 34448
 */
@Mapper
public interface InternalMessageMapper extends BaseMapper<InternalMessageDO> {

    @Select("SELECT COUNT(message_id) AS count FROM internal_messages WHERE read_status = FALSE")
    Integer countUnreadInternalMessages();
}